import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class Plataforma extends MIDlet 
{
	private Display display;
	private JogoCanvas canvas;
	
	public Plataforma()
	{
		display = Display.getDisplay(this);
		canvas = new JogoCanvas();
	}

	public void startApp() 
	{
	
		display.setCurrent(canvas);
		canvas.inicia();
	}

	public void pauseApp() 
	{
		canvas.pausa();
	}

	public void destroyApp(boolean unconditional) 
	{
		canvas.pausa();
	}

}